<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>

<script>

    function getUrl (url){
        let res = {};
        let arr0 = url.split('?');
        if(arr0.length <= 1){return res}
        let arr = arr0[1].split('&');
        for(let i = 0; i < arr.length; i++){
            let item = arr[i].split('=');
            res[item[0]] = item[1];
        }
        return res;
    }
    console.log(getUrl('?f=8&ie=utf-8&rsv_bp=1&tn=monline_3_dg&wd=session'));

</script>